package com.relytosoft.mizar.media.display.services.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.relytosoft.mizar.media.display.api.entity.CruiseControl;
import com.relytosoft.mizar.media.display.api.entity.CruiseTrack;
import com.relytosoft.mizar.media.display.api.pojo.dto.CruiseTrackDto;

import java.util.List;

/**
 * 轨迹业务接口
 *
 * @author hj
 * @version 1.0
 * @date 2022/4/7 10:46
 * @ClassName CruiseTrackService
 */
public interface CruiseTrackService extends IService<CruiseTrack> {
    /**
     * 通过通道id查询轨迹信息
     * @author jgg
     * @param channelId
     * @return List<CruiseTrackDto>
     */

    List<CruiseTrackDto> selectListByChannelId(Integer channelId);

    /**
     * 添加巡航轨迹
     * @author jgg
     * @date 2022/4/11 11:15
     * @param track
     * @return boolean
     */
    boolean addCruiseTrack(CruiseTrackDto track);

    /**
     * 修改巡航轨迹
     * @author jgg
     * @date 2022/4/12 11:25
     * @param track
     * @return boolean
     */
    boolean updateCruiseTrack(CruiseTrackDto track);

    /**
     * 删除巡航轨迹
     * @author jgg
     * @date 2022/4/11 14:53
     * @param id
     * @return boolean
     */
    boolean deleteCruiseTrack(Integer id);

    /**
     * 启动/停止巡航
     * @author jgg
     * @date 2022/4/11 16:08
     * @param control
     * @return boolean
     */
    boolean doCruise(CruiseControl control);
}
